<?php

namespace app\admin\service;


/**
 * 公共-服务类
 * @author tangsan
 * @package app\admin\service
 */
class CommonService extends BaseService
{

    public static function dbToShow($value)
    {
        if (is_numeric($value)) {
            return $value / 1000;
        }
        return 0;

    }


    public static function InsertToDb($value)
    {
        if (is_numeric($value)) {
            return $value * 1000;
        }
        return 0;

    }


}